//
//  EditView.h
//  dhfsAPP
//
//  Created by Devil on 2017/8/2.
//  Copyright © 2017年 Devil. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "HeaderView.h"
#import "SDWebImage/UIImageView+WebCache.h"

typedef NS_ENUM(NSUInteger,EditViewButtonType) {
    EditViewButtonTypeFemale = 101,
    EditViewButtonTypeMale,
    EditViewButtonTypeHeaderImg,
    EditViewButtonTypeSave
};

@protocol EditViewDelegate <NSObject>

-(void)clickEditViewBtn:(UIButton *)btn;

-(void)chooseHeaderImg;

@end

@interface EditView : UIView

@property(weak,nonatomic)id<EditViewDelegate>editViewDelegate;

@property(strong,nonatomic)HeaderView *headerView;

//头像
@property(strong,nonatomic)UIButton *lastBtn,*headerImgBtn;

//昵称输入框
@property(strong,nonatomic)UITextField *nameTextField;

@property(strong,nonatomic)NSDictionary *userInfo;

-(instancetype)initWithFrame:(CGRect)frame UserInfo:(NSDictionary *)userInfo;

@end
